############################################################################
# Copyright (c) 2015 Saint Petersburg State University
# Copyright (c) 2011-2014 Saint Petersburg Academic University
# All Rights Reserved
# See file LICENSE for details.
############################################################################

project(utils CXX)

set(utils_src
    memory_limit.cpp
    filesystem/copy_file.cpp
    filesystem/path_helper.cpp
    filesystem/temporary.cpp
    filesystem/glob.cpp
    logger/logger_impl.cpp)

if (READLINE_FOUND)
  set(utils_src ${utils_src} autocompletion.cpp)
endif()

add_library(utils STATIC
            ${utils_src})
target_link_libraries(utils ${COMMON_LIBRARIES})

add_library(version STATIC
            version.cpp)
